package com.qin.mall.controller.ordercontroller;

import com.qin.mall.openfeign.order.OmsCompanyAddressFeigin;
import com.qin.mall.common.api.CommonResult;
import com.qin.mall.domain.OmsCompanyAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Leisure
 * create 2022 2022/11/22 8:59
 **/
@RestController
@RequestMapping("/companyAddress")
public class CompanyAddressController {
    
    @Autowired
    private OmsCompanyAddressFeigin companyAddressFeigin;
    
    
    @GetMapping("/list")
    @ResponseBody
    public CommonResult<List<OmsCompanyAddress>> list() {
        CommonResult<List<OmsCompanyAddress>> list = companyAddressFeigin.list();
        return list;
    }
}
